/**
 * Created by Administrator on 2019/9/3.
 */
var m = document.querySelector("#m");
var s = document.querySelector('#s');
var m = 59;
var s = 60;

setInterval(function () {
    s--;
    if(s<10){
        s = "0" + s;
    }
    document.getElementById("s").innerHTML = s;
    if(s == 00){
        s = 60;
        m--;
        if(m<10){
            m = "0" + m;
        }
        if(m ==0){
            m = 59;
        }
    }
    document.getElementById("m").innerHTML = m;
},1000)
